Release 10.1A: OpenEdge Development:
Progress 4GL Handbook
Creating a dynamic browse and customizing its display
The
initializeObjectprocedure creates a dynamic browse whose columns are filled in when you select fields for a table. It also defines aROW-DISPLAYtrigger that fires as each row in the browse is displayed:
The
ROW-DISPLAYevent lets you intercept the display of each row in the browse to change colors, formats, or calculated values. If you look at the trigger procedure that handles thatROW-DISPLAYevent, you see that it is responsible for alternating the browse rows between white and gray. ThelRowlogical variable is defined in the Definitions section for the main procedure block so that its value is maintained between calls torowDisplay:
The
rowDisplayprocedure sets foreground and background colors depending on the setting oflRow:
It then assigns these colors for each cell in the row. There’s no attribute that lets you do this for the entire row at once:
Finally, it reverses the value of
lRowin preparation for the next call:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |